//
//  WD_HomeMessageDetailCell.m
//  BUDING
//
//  Created by HanWoonYong on 16/4/8.
//  Copyright © 2016年 HanWoonYong. All rights reserved.
//

#import "WD_HomeMessageDetailCell.h"

@implementation WD_HomeMessageDetailCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.message = [[UILabel alloc] initWithFrame:CGRectZero];
        self.message.numberOfLines = 3;
        [self.contentView addSubview:self.message];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.message.frame = CGRectMake(0, 0, WIDTH, 60);
}

- (void)setMovieModel:(WD_MovieModel *)movieModel {
    _movieModel = movieModel;
    self.message.text = _movieModel.intro;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
